import request from '@/utils/request'

// 查询优化动作管理列表
export function listOptimizeActions(query) {
  return request({
    url: '/business/optimizeActions/list',
    method: 'get',
    params: query
  })
}

// 查询优化动作管理详细
export function getOptimizeActions(id) {
  return request({
    url: '/business/optimizeActions/' + id,
    method: 'get'
  })
}

// 新增优化动作管理
export function addOptimizeActions(data) {
  return request({
    url: '/business/optimizeActions',
    method: 'post',
    data: data
  })
}

// 修改优化动作管理
export function updateOptimizeActions(data) {
  return request({
    url: '/business/optimizeActions',
    method: 'put',
    data: data
  })
}

// 删除优化动作管理
export function delOptimizeActions(id) {
  return request({
    url: '/business/optimizeActions/' + id,
    method: 'delete'
  })
}

// 导出文件
export function exportExcel(data){
  return request({
    url: '/business/optimizeActions/export',
    method: 'post',
    data: data
  })
}

// 获取所有优化动作管理列表
export function getAllList() {
  return request({
    url: '/business/optimizeActions/getAllList',
    method: 'get'
  })
}
